<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
    </head>
    <body></body>
</html>
<script>
    const regx = /abc+/gi;
    const str1 = "abd";
    const str2 = "abc";
    const str3 = "abccd";
    console.log(str1.match(regx));
    console.log(str2.match(regx));
    console.log(str3.match(regx));
</script>
